<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas" width="600" height="800" style="border: 1px dashed gray"></canvas>
</body>
</html>
<script>

    let cns = document.querySelector('#canvas');
    let context = cns.getContext('2d');

    context.beginPath();
    context.arc(100, 100, 80, 0, Math.PI*2, false);
    context.closePath();
    
    context.strokeStyle='pink';
    context.stroke();


    context.beginPath();
    context.arc(120, 300, 120, 0, Math.PI, true);
    context.closePath();
    
    context.strokeStyle='hotpink';
    context.stroke();

    context.moveTo(20,500);
    // context.lineTo(70, 500);
    context.arcTo(120, 500, 120, 550, 50);
    context.lineTo(120, 600);
    context.stroke();
    
    
    




</script>